package routers

import (
	"github.com/gin-gonic/gin"
	"wx-api/dsp-api/handlers"
	"wx-api/dsp-api/services/se_dsp_media"
)

func Route_DspMediaList(router *gin.RouterGroup) {
	obj := router.Group("/dsp_media")
	obj.GET("/list", func(c *gin.Context) {
		se_dsp_media.List(handlers.NewBaseController(c))
	})
	obj.POST("/add", func(c *gin.Context) {
		se_dsp_media.Add(handlers.NewBaseController(c))
	})
	obj.POST("/edit", func(c *gin.Context) {
		se_dsp_media.Edit(handlers.NewBaseController(c))
	})
	obj.GET("/info", func(c *gin.Context) {
		se_dsp_media.Info(handlers.NewBaseController(c))
	})
	obj.GET("/flag", func(c *gin.Context) {
		se_dsp_media.Flag(handlers.NewBaseController(c))
	})
	obj.GET("/stats", func(c *gin.Context) {
		se_dsp_media.Stats(handlers.NewBaseController(c))
	})
	obj.GET("/all", func(c *gin.Context) {
		se_dsp_media.All(handlers.NewBaseController(c))
	})
}
